package edu.gdkm.demo6.demo2;

public class Manager extends Employee{
    private double nianxin;
    private double ticheng;

    public double getNianxin() {
        return nianxin;
    }

    public void setNianxin(double nianxin) {
        this.nianxin = nianxin;
    }

    public double getTicheng() {
        return ticheng;
    }

    public void setTicheng(double ticheng) {
        this.ticheng = ticheng;
    }

    public double salary_count() {
        return nianxin+ticheng;
    }

    public Manager() {
    }

    public Manager(double nianxin, double ticheng) {
        this.nianxin = nianxin;
        this.ticheng = ticheng;
    }

    public Manager(String name, String sex, int age, double nianxin, double ticheng) {
        super(name, sex, age);
        this.nianxin = nianxin;
        this.ticheng = ticheng;
    }
}
